package com.blue.base.demo.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 角色信息
 *
 * @author liulei,lei.liu@htouhui.com
 * @version 1.0
 */
@ApiModel("角色查询返回实体")
@Data
public class RoleVo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty("主键id")
    private Long roleId;
    /**
     * 父角色id
     */
    @ApiModelProperty("父角色id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long pid;
    /**
     * 角色名称
     */
    @ApiModelProperty("角色名称")
    private String name;
    /**
     * 别名
     */
    @ApiModelProperty("别名")
    private String description;
    /**
     * 序号
     */
    @ApiModelProperty("序号")
    private Integer sort;
}

